Skip to content

Replaced Checkbox with MUI Checkbox #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

NatLeung96
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@abigailalexander abigailalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, I only had a few small comments that are quite similar to those on the ActionButton PR.

I did notice that the Checkbox doesn't seem to be located correctly in the page, it's setting some padding that makes it shift down and to the right of where it should be compared to Phoebus (see images - left is the size and position of the widget as defined in Phoebus, right shows how the padding is forcing the entire component including the label to be shifted)

Screenshot from 2025-03-31 08-50-38 Screenshot from 2025-03-31 08-50-47

Copy link
Collaborator

@abigailalexander abigailalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing those other items. Just the issue with the padding/sizing of the checkbox that I mentioned to you remaining. From what I saw when I looked into it:

  • Unneeded padding on the MUI Checkbox component itself
  • Unnecessary right-side margin on the MUI Form Control element
  • Some sort of size restriction that doesn't allow the Checkbox Icon to go small enough. It seems like it might be one of the MUI internal components that needs adjusting e.g. MuiCheckbox-root

@NatLeung96 NatLeung96 merged commit d18705f into 80-update-widgets-to-use-mui-base Apr 9, 2025
2 checks passed
@NatLeung96 NatLeung96 deleted the 88-replace-checkbox-with-mui-checkbox branch April 9, 2025 07:48
NatLeung96 added a commit that referenced this pull request Apr 10, 2025
* Replaced Checkbox with MUI Checkbox

* Removed ThemeProvider and added additional styling to FormControlLabel

* Moved static styling to styled API. Not-allowed cursor when widget is disabled. Added font styling.

* Removed padding

* Removed padding and fixed alignments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants